export type AllErrors = 
    {
        readonly family: "USER_LOGIN_ERROR_CODE",
        readonly code: "ILLEGAL_USERNAME_OR_PASSWORD",
        readonly "msg": string
    } | 
    {
        readonly family: "USER_LOGIN_ERROR_CODE",
        readonly code: "USERNAME_NOT_FOUND",
        readonly "msg": string
    }
;

export type ApiErrors = {
    "authController": {
        "token": AllErrors & (
            {
                readonly family: 'USER_LOGIN_ERROR_CODE',
                readonly code: 'USERNAME_NOT_FOUND',
                readonly [key:string]: any
            } | 
            {
                readonly family: 'USER_LOGIN_ERROR_CODE',
                readonly code: 'ILLEGAL_USERNAME_OR_PASSWORD',
                readonly [key:string]: any
            }
        )
    },
    "resourceController": {
    },
    "roleController": {
    },
    "userController": {
    }
};
